# while 循环
a = 0
while a < 3:
    pwd = input('your pwd: ')
    if pwd == '888':
        print('correct!')
        break
    else:
        print('wrong!')
    # 改变循环的条件
    a += 1
else:
    print('wrong for 3 times')
print('task end')
